{extend name="admin@template/base" /}
{block name="content"}
<div class="page-container">
    {include file='form' /}
    <div class="cl pd-5 bg-1 bk-gray">
        <span class="l">
            {tp:menu menu='recycle,deleteForever,clear' /}
        </span>
        <span class="r pt-5 pr-5">
            共有数据 ：<strong>{$count}</strong> 条
        </span>
    </div>
    {php} use think\Db; {/php}
    <table class="table table-border table-bordered table-hover table-bg mt-20">
        <thead>
        <tr class="text-c">
            <!--<th width="25"><input type="checkbox" id="checkAlls"></th>-->
            <th width="">订单信息</th>
            <th width="">预订人信息</th>
            <th width="">产品信息</th>
            <th width="">价格</th>
            <th width="">状态</th>
            <th width="">备注</th>

            <th width="70">操作</th>
        </tr>
        </thead>
        <tbody>
        {volist name="list" id="vo"}
        <tr class="text-c">
            <!--<td><input type="checkbox" name="id[]" value="{$vo.id}"></td>-->
            <td>
                订单ID：{$vo.id}<br/>
                订单号：{$vo.order_id}<br/>
                下单时间：{$vo.ctime|date='Y-m-d H:i:s',###}<br/>
                出行日期：{$vo.start_time|date='Y-m-d H:i:s',###}<br/>
                结束日期：{$vo.end_time|date='Y-m-d H:i:s',###}<br/>
                点评情况：
                {if ($vo.is_review == 0) }
                未点评
                {elseif($vo.is_review == 1) /}
                好评
                {else /}
                差评
                {/if}
                <br/>
                来源平台：{$vo.platform}<br/>
                是否为接送机订单：
                {if ($vo.is_pick_up == 0) }
                否
                {else /}
                是
                {/if}
                <!--<a href="javascript:;" class="label label-success radius" title="更改">更改</a>-->
                <!--<a id="edit_pick_up{$k}" href="javascript:;" onclick="edit_pick_up('{$k}','{$vo.order_id}')" style="text-decoration:none; " class="label label-success radius" title="更改">更改</a>-->
            </td>
            <td>
                姓名：{$vo.booking_people_name}<br/>
                UID：{$vo.uid}<br/>
                电话：{$vo.booking_people_phone}<br/>
                邮箱：{$vo.booking_people_email}<br/>
                微信号：
                {if ($vo.booking_people_wechat == '') OR ($vo.booking_people_wechat == null) }
                <span>-</span>
                {else /}
                {$vo.booking_people_wechat}
                {/if}
            </td>
            <td>
                产品：{$vo.route_title}<br/>
                库存：{$vo.sku_name}<br/>
                OTA产品名称：{$vo.ota_sales_name}
            </td>
            <td>
                订单金额：￥{$vo.total_price}<br/>
                已付金额：￥{$vo.payment_fee}<br/>
                平台补贴：￥{$vo.reduce_ota}<br/>
                商家补贴：￥{$vo.reduce_mfw}
            </td>
            <td>
                <span class="label label-primary radius">
                    {switch name="$vo.order_status"}
                    {case value="pay_for"}待付款{/case}
                    {case value="pending"}待出单{/case}
                    {case value="issue"}已出单{/case}
                    {case value="finish"}已完成{/case}
                    {case value="close"}关闭{/case}
                    {/switch}
                </span>
            </td>
            <td>
                <span id="text_remark{$k}">{$vo.remark}</span>
            </td>
            <td class="f-14">
                {tp:menu menu='srecycle,sdeleteforever' /}
            </td>
        </tr>
        {/volist}
        </tbody>
    </table>
    <div class="page-bootstrap">{$page}</div>
</div>
{/block}